package com.supermap.data.utils;

/**
 * 检索的范围信息
 * 
 * @author Linhao
 *
 */
public class PageInfo {

	private int pageNumber = 1;
	
	private int pageSize = 10;
	
	public PageInfo(){}
	
	public PageInfo(int pageNumber, int pageSize){
		this.pageNumber = pageNumber;
		this.pageSize = pageSize;
	}

	public int getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(int start) {
		this.pageNumber = start == 0 ? 1 : start;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize == 0 ? 20 : pageSize;
	}
	
	
}
